<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');
//公司
	class Project_technician_model extends MY_Model
{
    private $table = 'project_technician';
	public function __construct()
	{
		parent::__construct($this->table);	
	}
	//获取列表
	public function getList($where=[],$dbArray=[]){
	    $select='project.projectId,title,concat("'.IMAGEHOST.'" ,poster)as poster,judge,price,sales';
	    $this->db->join('project','project.projectId=project_technician.projectId');
	    return $this->getWhere($where,$select,$dbArray);	    
	}
	//获取项目详情
	public function getDetail($projectId){
	    $select='projectId,companyId,title,concat("'.IMAGEHOST.'" ,poster)as poster,judge,price,sales,typeName,duration,effect,serviceTypeIds,content,tips';
	    $where=['projectId'=>$projectId];
	    $this->db->join('type','type.typeId=project.typeId','left');
	    return $this->getWhereRow($where,$select);
	}
}
?>